package com.zzzy.doc.dao.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zzzy.doc.dao.entity.DocReceiveRecord;
import com.zzzy.doc.vo.document.exchange.receive.DocExchangeReceivePageReq;
import com.zzzy.doc.vo.document.exchange.receive.DocExchangeReceiveQueryRes;
import com.zzzy.framework.core.mybatis.mapper.BaseMapperE;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 单位收文记录
 *
 * @author fc
 * @since 2024-09-09
 */
public interface DocReceiveRecordMapper extends BaseMapperE<DocReceiveRecord> {

    List<DocExchangeReceiveQueryRes> selectListBySendId(Long sendRecordId);

    DocExchangeReceiveQueryRes selectByReceiveId(Long receiveId);

    IPage<DocExchangeReceiveQueryRes> selectPage(IPage<DocExchangeReceiveQueryRes> mpPage
            , @Param("queryReq") DocExchangeReceivePageReq queryReq, @Param("userId") Long userId);
}
